package org.karesz.dao;

import java.util.Date;

import javax.ejb.Stateless;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;


//import org.hibernate.Session;
import org.karesz.model.User;


@Stateless
public class JbossUserDaoImpl {

	@PersistenceContext
	EntityManager em;

	public void save(User user){
		user.setCreated(new Date());
		em.persist(user);
	}

	public EntityManager getEm() {
		return em;
	}

	public void setEm(EntityManager em) {
		this.em = em;
	}
	
	
}
